package com.qidian.hw.service.impl;

import com.qidian.hw.dao.SolutionTypeDAO;
import com.qidian.hw.dao.impl.SolutionTypeDAOImpl;
import com.qidian.hw.pojo.SolutionType;
import com.qidian.hw.service.SolutionTypeService;

import java.util.ArrayList;

/**
 * @Author ꒰ঌ(李ᆺ琛)໒꒱
 * @Date 2022/8/19 20:06
 * @Version 1.8
 */
public class SolutionTypeServiceImpl implements SolutionTypeService {
    private SolutionTypeDAO solutionTypeDAO = new SolutionTypeDAOImpl ();

    @Override
    public int saveSolutionType(SolutionType solutionType) {
        return solutionTypeDAO.saveSolutionType (solutionType);
    }

    @Override
    public int deleteSolutionType(long solutionTypeId) {
        return solutionTypeDAO.deleteSolutionType (solutionTypeId);
    }

    @Override
    public int updateSolutionType(SolutionType solutionType) {
        return solutionTypeDAO.updateSolutionType (solutionType);
    }

    @Override
    public ArrayList<SolutionType> listSolutionType() {
        return solutionTypeDAO.listSolutionType ();
    }

    @Override
    public SolutionType querySolutionTypeById(long solutionTypeId) {
        return solutionTypeDAO.querySolutionTypeById (solutionTypeId);
    }

    @Override
    public int deleteBatch(String[] ids) {
        return solutionTypeDAO.deleteBatch (ids);
    }
}
